package com.ibeeking.found.file.rest.service.office.documentserver.models.filemodel;

import com.ibeeking.found.file.rest.service.office.documentserver.models.AbstractModel;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("prototype")
@Getter
@Setter
public class User extends AbstractModel {

    private String id;

    private String name;

    private String group;


    // the userEntity configuration parameters
    public void configure(int id, String name, String group){
        this.id = "uid-"+id;  // the userEntity id
        this.name = name;  // the userEntity name
        this.group = group;  // the group the userEntity belongs to
    }
}
